package com.ruoyi.kjdlzb.entity;

import com.alibaba.fastjson.JSONArray;

public class Geometry {
	
	private String type = null; // 类型使用枚举
	private JSONArray coordinates = null;
	
	
	
	public String getType() {
		return type;
	}



	public void setType(GeometryType type) {
		this.type = type.getId();
	}

	public JSONArray getCoordinates() {
		return coordinates;
	}



	public void setCoordinates(JSONArray coordinates) {
		this.coordinates = coordinates;
	}



	public enum GeometryType{
		Point("Point" ,"点"),	
		LineString("LineString" ,"线"),
		Polygon("Polygon" ,"多边形"),
		MultiPoint("MultiPoint", "多个点"),
		MultiLineString("MultiLineString", "多条先"),
		MultiPolygon("MultiPolygon", "多个多边形");	
		private String id;
		private String name;
		private GeometryType(String id, String name) {
	        this.id = id;
	        this.name = name;
	    }
	    public String getName() {
	        return name;
	    }
	    public String getId() {
	        return id;
	    }		
	}
	
	
	
	

}
